package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author oxiny
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@TableName("d_order_commission")
public class OrderCommission extends Model<OrderCommission> {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("发型师ID")
    private Integer workerId;

    @ApiModelProperty("门店ID")
    private Integer storeId;

    @ApiModelProperty("订单ID")
    private Integer orderId;

    @ApiModelProperty("提成类型 0剪发业绩 1评价提成 2会员提成 3会员业绩 4抖音会员业绩")
    private Integer type;

    @ApiModelProperty("提成数额(分)")
    private Integer amount;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty
    private Date addTime;
}
